package ${properties.boPkgName};

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ${properties.daoPkgName}.${className}DAO;
import ${properties.daoPkgName}.BaseDAO;
import ${properties.pojoPkgName}.${className};

public class ${className}BO 
{

  protected static Logger logger = LoggerFactory.getLogger(${className}BO.class);
  
  private BaseDAO baseDAO;
  
  private ${className}DAO ${className?uncap_first}DAO;
  
  public BaseDAO getBaseDAO(){
  		return this.baseDAO;
  }

  public void setBaseDAO(BaseDAO baseDAO){
  		this.baseDAO = baseDAO;
  }
  
  public void set${className}DAO(${className}DAO ${className?uncap_first}DAO){
  		this.${className?uncap_first}DAO = ${className?uncap_first}DAO;
  }
  
  public ${className}DAO get${className}DAO(){
  		return this.${className?uncap_first}DAO;
  }
  
  public void save(${className} ${className?uncap_first})
  {
    this.get${className}DAO().save(${className?uncap_first});
  }

  public ${className} get${className}(Long id)
  {
    return  this.get${className}DAO().get${className}(id);
  }

  public List<${className}> get${className}s()
  {
    return this.get${className}DAO().get${className}s();
  }
  
  public List<${className}> get${className}s(Long[] ids)
  {
    return this.get${className}DAO().get${className}s(ids);
  }

  public void remove(Long id)
  {
    this.get${className}DAO().remove(id);
  }
  
}